using System;
using GameFramework.Reference;

namespace Server.Proto
{
    /// <summary>
    /// 帐号角色信息
    /// </summary>
    public class AccountRoleInfo : AReference
    {
        /// <summary>
        /// 角色id
        /// </summary>
        public long Id;
        
        /// <summary>
        /// 角色名
        /// </summary>
        public string Name;
        
        /// <summary>
        /// 创角时间
        /// </summary>
        public DateTime CreateTime;
        
        /// <summary>
        /// 最后登录时间
        /// </summary>
        public DateTime LastLoginTime;

        public override void OnRecycle()
        {
            Id = default;
            Name = string.Empty;
            CreateTime = default;
            LastLoginTime = default;            
        }
    }
}